﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using System.Collections.Generic;
using ScrumTable.Common.Collections;

#endregion

namespace ScrumTable.DL.Data.Schema.ScrumTableV1
{
    /// <summary>
    /// Specifies an enumeration with the field names of 
    /// the member data access object.
    /// </summary>
    public class MemberSchema : SchemaBase
    {
        #region Declarations
        //--------------------------------------------------------------------
        // Declarations
        //--------------------------------------------------------------------

        /// <summary>
        /// Name for the title (or overview) field.
        /// </summary>
        /// <remarks>The value must be type of string.</remarks>
        public readonly SchemaBase Name = new NamedSchema(typeof(string), isReadOnly: true);

        /// <summary>
        /// Name for the email member field.
        /// </summary>
        public readonly SchemaBase EMail = new NamedSchema(typeof(string), isReadOnly: true);

        /// <summary>
        /// Name for the picture member field.
        /// </summary>
        public readonly SchemaBase PictureUri = new NamedSchema(typeof(Uri), isReadOnly: true);

        /// <summary>
        /// Name for the picture hasLoginData field.
        /// </summary>
        public readonly SchemaBase HasLoginData = new NamedSchema(typeof(bool), isReadOnly: true);

        /// <summary>
        /// Name for the teamid member field.
        /// </summary>
        /// <remarks>The value must be type of ValueChain&gt;string&lt;.</remarks>
        public readonly SchemaBase TeamIds = new NamedSchema(typeof(ValueChain<string>), isSchemaReference: true, isReadOnly: true);

        #endregion

        #region Constructors / Destructor
        //--------------------------------------------------------------------
        // Constructors / Destructor
        //--------------------------------------------------------------------

        /// <summary>
        /// Do not create global instances of this class.
        /// </summary>
        internal protected MemberSchema()
        {
        }

        #endregion
    }
}
